home *** CD-ROM | disk | FTP | other *** search
/ Internet News 2000 October / Internet News 2000-10 - CD-ROM.rar / IN200010.BIN / Linux / netscape-i686-pc-linux-gnu-sea.tar.gz / netscape-i686-pc-linux-gnu-sea.tar / netscape-installer / xpi / xpcom.xpi / install.js
Text File  |  2000-08-07  |  742b  |  26 lines

  1. var err = initInstall("Netscape Seamonkey", "Browser", "5.0.0.0000000000"); 
  2. logComment("initInstall: " + err);
  3.  
  4. var communicatorFolder = getFolder("Program");
  5. logComment("communicatorFolder: " + communicatorFolder);
  6.  
  7. err = addDirectory("Program",
  8.                    "5.0.0.0000000000",
  9.                    "bin",              // jar source folder 
  10.                    communicatorFolder, // target folder 
  11.                    "",                 // target subdir 
  12.                    true );             // force flag 
  13.  
  14. logComment("addDirectory() returned: " + err);
  15.  
  16. if (err==SUCCESS)
  17. {
  18.     err = performInstall(); 
  19.     logComment("performInstall() returned: " + err);
  20. }
  21. else
  22. {
  23.     cancelInstall(err);
  24.     logComment("cancelInstall() returned: " + err);
  25. }
  26.